package com.shzu.pojo;

import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;
@Component
public class MajorCourceReplaceExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public MajorCourceReplaceExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andMidIsNull() {
            addCriterion("mid is null");
            return (Criteria) this;
        }

        public Criteria andMidIsNotNull() {
            addCriterion("mid is not null");
            return (Criteria) this;
        }

        public Criteria andMidEqualTo(String value) {
            addCriterion("mid =", value, "mid");
            return (Criteria) this;
        }

        public Criteria andMidNotEqualTo(String value) {
            addCriterion("mid <>", value, "mid");
            return (Criteria) this;
        }

        public Criteria andMidGreaterThan(String value) {
            addCriterion("mid >", value, "mid");
            return (Criteria) this;
        }

        public Criteria andMidGreaterThanOrEqualTo(String value) {
            addCriterion("mid >=", value, "mid");
            return (Criteria) this;
        }

        public Criteria andMidLessThan(String value) {
            addCriterion("mid <", value, "mid");
            return (Criteria) this;
        }

        public Criteria andMidLessThanOrEqualTo(String value) {
            addCriterion("mid <=", value, "mid");
            return (Criteria) this;
        }

        public Criteria andMidLike(String value) {
            addCriterion("mid like", value, "mid");
            return (Criteria) this;
        }

        public Criteria andMidNotLike(String value) {
            addCriterion("mid not like", value, "mid");
            return (Criteria) this;
        }

        public Criteria andMidIn(List<String> values) {
            addCriterion("mid in", values, "mid");
            return (Criteria) this;
        }

        public Criteria andMidNotIn(List<String> values) {
            addCriterion("mid not in", values, "mid");
            return (Criteria) this;
        }

        public Criteria andMidBetween(String value1, String value2) {
            addCriterion("mid between", value1, value2, "mid");
            return (Criteria) this;
        }

        public Criteria andMidNotBetween(String value1, String value2) {
            addCriterion("mid not between", value1, value2, "mid");
            return (Criteria) this;
        }

        public Criteria andBcidIsNull() {
            addCriterion("bcid is null");
            return (Criteria) this;
        }

        public Criteria andBcidIsNotNull() {
            addCriterion("bcid is not null");
            return (Criteria) this;
        }

        public Criteria andBcidEqualTo(String value) {
            addCriterion("bcid =", value, "bcid");
            return (Criteria) this;
        }

        public Criteria andBcidNotEqualTo(String value) {
            addCriterion("bcid <>", value, "bcid");
            return (Criteria) this;
        }

        public Criteria andBcidGreaterThan(String value) {
            addCriterion("bcid >", value, "bcid");
            return (Criteria) this;
        }

        public Criteria andBcidGreaterThanOrEqualTo(String value) {
            addCriterion("bcid >=", value, "bcid");
            return (Criteria) this;
        }

        public Criteria andBcidLessThan(String value) {
            addCriterion("bcid <", value, "bcid");
            return (Criteria) this;
        }

        public Criteria andBcidLessThanOrEqualTo(String value) {
            addCriterion("bcid <=", value, "bcid");
            return (Criteria) this;
        }

        public Criteria andBcidLike(String value) {
            addCriterion("bcid like", value, "bcid");
            return (Criteria) this;
        }

        public Criteria andBcidNotLike(String value) {
            addCriterion("bcid not like", value, "bcid");
            return (Criteria) this;
        }

        public Criteria andBcidIn(List<String> values) {
            addCriterion("bcid in", values, "bcid");
            return (Criteria) this;
        }

        public Criteria andBcidNotIn(List<String> values) {
            addCriterion("bcid not in", values, "bcid");
            return (Criteria) this;
        }

        public Criteria andBcidBetween(String value1, String value2) {
            addCriterion("bcid between", value1, value2, "bcid");
            return (Criteria) this;
        }

        public Criteria andBcidNotBetween(String value1, String value2) {
            addCriterion("bcid not between", value1, value2, "bcid");
            return (Criteria) this;
        }

        public Criteria andBcgroupIsNull() {
            addCriterion("bcgroup is null");
            return (Criteria) this;
        }

        public Criteria andBcgroupIsNotNull() {
            addCriterion("bcgroup is not null");
            return (Criteria) this;
        }

        public Criteria andBcgroupEqualTo(String value) {
            addCriterion("bcgroup =", value, "bcgroup");
            return (Criteria) this;
        }

        public Criteria andBcgroupNotEqualTo(String value) {
            addCriterion("bcgroup <>", value, "bcgroup");
            return (Criteria) this;
        }

        public Criteria andBcgroupGreaterThan(String value) {
            addCriterion("bcgroup >", value, "bcgroup");
            return (Criteria) this;
        }

        public Criteria andBcgroupGreaterThanOrEqualTo(String value) {
            addCriterion("bcgroup >=", value, "bcgroup");
            return (Criteria) this;
        }

        public Criteria andBcgroupLessThan(String value) {
            addCriterion("bcgroup <", value, "bcgroup");
            return (Criteria) this;
        }

        public Criteria andBcgroupLessThanOrEqualTo(String value) {
            addCriterion("bcgroup <=", value, "bcgroup");
            return (Criteria) this;
        }

        public Criteria andBcgroupLike(String value) {
            addCriterion("bcgroup like", value, "bcgroup");
            return (Criteria) this;
        }

        public Criteria andBcgroupNotLike(String value) {
            addCriterion("bcgroup not like", value, "bcgroup");
            return (Criteria) this;
        }

        public Criteria andBcgroupIn(List<String> values) {
            addCriterion("bcgroup in", values, "bcgroup");
            return (Criteria) this;
        }

        public Criteria andBcgroupNotIn(List<String> values) {
            addCriterion("bcgroup not in", values, "bcgroup");
            return (Criteria) this;
        }

        public Criteria andBcgroupBetween(String value1, String value2) {
            addCriterion("bcgroup between", value1, value2, "bcgroup");
            return (Criteria) this;
        }

        public Criteria andBcgroupNotBetween(String value1, String value2) {
            addCriterion("bcgroup not between", value1, value2, "bcgroup");
            return (Criteria) this;
        }

        public Criteria andBcnumIsNull() {
            addCriterion("bcnum is null");
            return (Criteria) this;
        }

        public Criteria andBcnumIsNotNull() {
            addCriterion("bcnum is not null");
            return (Criteria) this;
        }

        public Criteria andBcnumEqualTo(Integer value) {
            addCriterion("bcnum =", value, "bcnum");
            return (Criteria) this;
        }

        public Criteria andBcnumNotEqualTo(Integer value) {
            addCriterion("bcnum <>", value, "bcnum");
            return (Criteria) this;
        }

        public Criteria andBcnumGreaterThan(Integer value) {
            addCriterion("bcnum >", value, "bcnum");
            return (Criteria) this;
        }

        public Criteria andBcnumGreaterThanOrEqualTo(Integer value) {
            addCriterion("bcnum >=", value, "bcnum");
            return (Criteria) this;
        }

        public Criteria andBcnumLessThan(Integer value) {
            addCriterion("bcnum <", value, "bcnum");
            return (Criteria) this;
        }

        public Criteria andBcnumLessThanOrEqualTo(Integer value) {
            addCriterion("bcnum <=", value, "bcnum");
            return (Criteria) this;
        }

        public Criteria andBcnumIn(List<Integer> values) {
            addCriterion("bcnum in", values, "bcnum");
            return (Criteria) this;
        }

        public Criteria andBcnumNotIn(List<Integer> values) {
            addCriterion("bcnum not in", values, "bcnum");
            return (Criteria) this;
        }

        public Criteria andBcnumBetween(Integer value1, Integer value2) {
            addCriterion("bcnum between", value1, value2, "bcnum");
            return (Criteria) this;
        }

        public Criteria andBcnumNotBetween(Integer value1, Integer value2) {
            addCriterion("bcnum not between", value1, value2, "bcnum");
            return (Criteria) this;
        }

        public Criteria andNewcidIsNull() {
            addCriterion("newcid is null");
            return (Criteria) this;
        }

        public Criteria andNewcidIsNotNull() {
            addCriterion("newcid is not null");
            return (Criteria) this;
        }

        public Criteria andNewcidEqualTo(String value) {
            addCriterion("newcid =", value, "newcid");
            return (Criteria) this;
        }

        public Criteria andNewcidNotEqualTo(String value) {
            addCriterion("newcid <>", value, "newcid");
            return (Criteria) this;
        }

        public Criteria andNewcidGreaterThan(String value) {
            addCriterion("newcid >", value, "newcid");
            return (Criteria) this;
        }

        public Criteria andNewcidGreaterThanOrEqualTo(String value) {
            addCriterion("newcid >=", value, "newcid");
            return (Criteria) this;
        }

        public Criteria andNewcidLessThan(String value) {
            addCriterion("newcid <", value, "newcid");
            return (Criteria) this;
        }

        public Criteria andNewcidLessThanOrEqualTo(String value) {
            addCriterion("newcid <=", value, "newcid");
            return (Criteria) this;
        }

        public Criteria andNewcidLike(String value) {
            addCriterion("newcid like", value, "newcid");
            return (Criteria) this;
        }

        public Criteria andNewcidNotLike(String value) {
            addCriterion("newcid not like", value, "newcid");
            return (Criteria) this;
        }

        public Criteria andNewcidIn(List<String> values) {
            addCriterion("newcid in", values, "newcid");
            return (Criteria) this;
        }

        public Criteria andNewcidNotIn(List<String> values) {
            addCriterion("newcid not in", values, "newcid");
            return (Criteria) this;
        }

        public Criteria andNewcidBetween(String value1, String value2) {
            addCriterion("newcid between", value1, value2, "newcid");
            return (Criteria) this;
        }

        public Criteria andNewcidNotBetween(String value1, String value2) {
            addCriterion("newcid not between", value1, value2, "newcid");
            return (Criteria) this;
        }

        public Criteria andNewgroupIsNull() {
            addCriterion("newgroup is null");
            return (Criteria) this;
        }

        public Criteria andNewgroupIsNotNull() {
            addCriterion("newgroup is not null");
            return (Criteria) this;
        }

        public Criteria andNewgroupEqualTo(String value) {
            addCriterion("newgroup =", value, "newgroup");
            return (Criteria) this;
        }

        public Criteria andNewgroupNotEqualTo(String value) {
            addCriterion("newgroup <>", value, "newgroup");
            return (Criteria) this;
        }

        public Criteria andNewgroupGreaterThan(String value) {
            addCriterion("newgroup >", value, "newgroup");
            return (Criteria) this;
        }

        public Criteria andNewgroupGreaterThanOrEqualTo(String value) {
            addCriterion("newgroup >=", value, "newgroup");
            return (Criteria) this;
        }

        public Criteria andNewgroupLessThan(String value) {
            addCriterion("newgroup <", value, "newgroup");
            return (Criteria) this;
        }

        public Criteria andNewgroupLessThanOrEqualTo(String value) {
            addCriterion("newgroup <=", value, "newgroup");
            return (Criteria) this;
        }

        public Criteria andNewgroupLike(String value) {
            addCriterion("newgroup like", value, "newgroup");
            return (Criteria) this;
        }

        public Criteria andNewgroupNotLike(String value) {
            addCriterion("newgroup not like", value, "newgroup");
            return (Criteria) this;
        }

        public Criteria andNewgroupIn(List<String> values) {
            addCriterion("newgroup in", values, "newgroup");
            return (Criteria) this;
        }

        public Criteria andNewgroupNotIn(List<String> values) {
            addCriterion("newgroup not in", values, "newgroup");
            return (Criteria) this;
        }

        public Criteria andNewgroupBetween(String value1, String value2) {
            addCriterion("newgroup between", value1, value2, "newgroup");
            return (Criteria) this;
        }

        public Criteria andNewgroupNotBetween(String value1, String value2) {
            addCriterion("newgroup not between", value1, value2, "newgroup");
            return (Criteria) this;
        }

        public Criteria andNewcnumIsNull() {
            addCriterion("newcnum is null");
            return (Criteria) this;
        }

        public Criteria andNewcnumIsNotNull() {
            addCriterion("newcnum is not null");
            return (Criteria) this;
        }

        public Criteria andNewcnumEqualTo(Integer value) {
            addCriterion("newcnum =", value, "newcnum");
            return (Criteria) this;
        }

        public Criteria andNewcnumNotEqualTo(Integer value) {
            addCriterion("newcnum <>", value, "newcnum");
            return (Criteria) this;
        }

        public Criteria andNewcnumGreaterThan(Integer value) {
            addCriterion("newcnum >", value, "newcnum");
            return (Criteria) this;
        }

        public Criteria andNewcnumGreaterThanOrEqualTo(Integer value) {
            addCriterion("newcnum >=", value, "newcnum");
            return (Criteria) this;
        }

        public Criteria andNewcnumLessThan(Integer value) {
            addCriterion("newcnum <", value, "newcnum");
            return (Criteria) this;
        }

        public Criteria andNewcnumLessThanOrEqualTo(Integer value) {
            addCriterion("newcnum <=", value, "newcnum");
            return (Criteria) this;
        }

        public Criteria andNewcnumIn(List<Integer> values) {
            addCriterion("newcnum in", values, "newcnum");
            return (Criteria) this;
        }

        public Criteria andNewcnumNotIn(List<Integer> values) {
            addCriterion("newcnum not in", values, "newcnum");
            return (Criteria) this;
        }

        public Criteria andNewcnumBetween(Integer value1, Integer value2) {
            addCriterion("newcnum between", value1, value2, "newcnum");
            return (Criteria) this;
        }

        public Criteria andNewcnumNotBetween(Integer value1, Integer value2) {
            addCriterion("newcnum not between", value1, value2, "newcnum");
            return (Criteria) this;
        }

        public Criteria andReplaceinfoIsNull() {
            addCriterion("replaceinfo is null");
            return (Criteria) this;
        }

        public Criteria andReplaceinfoIsNotNull() {
            addCriterion("replaceinfo is not null");
            return (Criteria) this;
        }

        public Criteria andReplaceinfoEqualTo(String value) {
            addCriterion("replaceinfo =", value, "replaceinfo");
            return (Criteria) this;
        }

        public Criteria andReplaceinfoNotEqualTo(String value) {
            addCriterion("replaceinfo <>", value, "replaceinfo");
            return (Criteria) this;
        }

        public Criteria andReplaceinfoGreaterThan(String value) {
            addCriterion("replaceinfo >", value, "replaceinfo");
            return (Criteria) this;
        }

        public Criteria andReplaceinfoGreaterThanOrEqualTo(String value) {
            addCriterion("replaceinfo >=", value, "replaceinfo");
            return (Criteria) this;
        }

        public Criteria andReplaceinfoLessThan(String value) {
            addCriterion("replaceinfo <", value, "replaceinfo");
            return (Criteria) this;
        }

        public Criteria andReplaceinfoLessThanOrEqualTo(String value) {
            addCriterion("replaceinfo <=", value, "replaceinfo");
            return (Criteria) this;
        }

        public Criteria andReplaceinfoLike(String value) {
            addCriterion("replaceinfo like", value, "replaceinfo");
            return (Criteria) this;
        }

        public Criteria andReplaceinfoNotLike(String value) {
            addCriterion("replaceinfo not like", value, "replaceinfo");
            return (Criteria) this;
        }

        public Criteria andReplaceinfoIn(List<String> values) {
            addCriterion("replaceinfo in", values, "replaceinfo");
            return (Criteria) this;
        }

        public Criteria andReplaceinfoNotIn(List<String> values) {
            addCriterion("replaceinfo not in", values, "replaceinfo");
            return (Criteria) this;
        }

        public Criteria andReplaceinfoBetween(String value1, String value2) {
            addCriterion("replaceinfo between", value1, value2, "replaceinfo");
            return (Criteria) this;
        }

        public Criteria andReplaceinfoNotBetween(String value1, String value2) {
            addCriterion("replaceinfo not between", value1, value2, "replaceinfo");
            return (Criteria) this;
        }

        public Criteria andAutoIsNull() {
            addCriterion("auto is null");
            return (Criteria) this;
        }

        public Criteria andAutoIsNotNull() {
            addCriterion("auto is not null");
            return (Criteria) this;
        }

        public Criteria andAutoEqualTo(Boolean value) {
            addCriterion("auto =", value, "auto");
            return (Criteria) this;
        }

        public Criteria andAutoNotEqualTo(Boolean value) {
            addCriterion("auto <>", value, "auto");
            return (Criteria) this;
        }

        public Criteria andAutoGreaterThan(Boolean value) {
            addCriterion("auto >", value, "auto");
            return (Criteria) this;
        }

        public Criteria andAutoGreaterThanOrEqualTo(Boolean value) {
            addCriterion("auto >=", value, "auto");
            return (Criteria) this;
        }

        public Criteria andAutoLessThan(Boolean value) {
            addCriterion("auto <", value, "auto");
            return (Criteria) this;
        }

        public Criteria andAutoLessThanOrEqualTo(Boolean value) {
            addCriterion("auto <=", value, "auto");
            return (Criteria) this;
        }

        public Criteria andAutoIn(List<Boolean> values) {
            addCriterion("auto in", values, "auto");
            return (Criteria) this;
        }

        public Criteria andAutoNotIn(List<Boolean> values) {
            addCriterion("auto not in", values, "auto");
            return (Criteria) this;
        }

        public Criteria andAutoBetween(Boolean value1, Boolean value2) {
            addCriterion("auto between", value1, value2, "auto");
            return (Criteria) this;
        }

        public Criteria andAutoNotBetween(Boolean value1, Boolean value2) {
            addCriterion("auto not between", value1, value2, "auto");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}